#pragma once

#include "../core/ApplicationContext.h"
#include "../widgets/RecognitionAutoWidget.h"
#include "IAppGlobal.h"

class AppGlobal : public IAppGlobal
{
private:
    shared_ptr<ApplicationContext> context;

public:
    AppGlobal(shared_ptr<ApplicationContext> context)
    {
        this->context = context;
    }

    void renderTitle() override
    {
        this->context->mainWindow()->setWindowTitle(QString(context->ProductName
        ));
    }
};
